Fix x86_64 Xen build.
authorIan.Campbell@xensource.com <Ian.Campbell@xensource.com>
Wed, 22 Feb 2006 17:26:39 +0000 (17:26 +0000)
committerIan.Campbell@xensource.com <Ian.Campbell@xensource.com>
Wed, 22 Feb 2006 17:26:39 +0000 (17:26 +0000)
event_callback_cs and failsafe_callback_cs are x86_32 only.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
xen/arch/x86/domain.c

index 1c083fcb67868d336c9217bdca54fe4df0e0991b..7584201bfb1b9762a2d395cc63167433622939da 100644 (file)
@@ -357,10 +357,14 @@ int arch_set_info_guest(
     if ( !(c->flags & VGCF_HVM_GUEST) )
     {
         if ( ((c->user_regs.ss & 3) == 0) ||
-             !VALID_CODESEL(c->user_regs.cs) ||
-             !VALID_CODESEL(c->event_callback_cs) ||
+             !VALID_CODESEL(c->user_regs.cs) )
+            return -EINVAL;
+
+#ifdef __i386__
+        if ( !VALID_CODESEL(c->event_callback_cs) ||
              !VALID_CODESEL(c->failsafe_callback_cs) )
             return -EINVAL;
+#endif
 
         for ( i = 0; i < 256; i++ )
             if ( !VALID_CODESEL(c->trap_ctxt[i].cs) )